<%@ page language="java" contentType="text/html; charset=UTF-8"  
    pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
<title>Insert title here</title>  
</head>  
<body>  
<form:form action="/media/testval/val" method="post" commandName="user">
    <table>
        <tr>
            <td>用户名：</td><td><form:input path="userName"/></td>
            <td><form:errors path="userName" cssStyle="color:red"></form:errors><br/>
        </tr>
        <tr>
            <td>密&nbsp;码:</td><td><form:input path="password"/></td>
            <td><form:errors path="password" cssStyle="color:red"></form:errors></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="提交"/></td>
        </tr>
    </table>
</form:form>
</body>  
</html>